//
//  DevicesCurrentTemperature-PGS.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/4/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "DevicesCurrentTemperature-PGS.h"

@implementation DevicesCurrentTemperature_PGS

- (NSString*)freezerId{
    
    return self.freezerIdStr;
}

- (NSString*)uid{
    
    return self.uidStr;
}

- (NSString*)deviceName{
    
    return self.deviceNameStr;
}

- (NSString*)companyId{
    
    return self.companyIdStr;
}

- (NSString*)measureStatus{
    
    return self.measureStatusStr;
}

- (NSString*)measureName{
    
    return self.measureNameStr;
}

- (NSString*)measureDescription{
    
    return self.measureDescriptionStr;
}

- (NSString*)measureSeverity{
    
    return self.measureSeverityStr;
}

- (NSString*)healthStatusCode{
    
    return self.healthStatusCodeStr;
}

- (NSString*)healthStatusText{
    
    return self.healthStatusTextStr;
}

- (NSString*)healthStatusColor{
    
    return self.healthStatusColorStr;
}

- (NSString*)connectionState{
    
    return self.connectionStateStr;
}

- (NSString*)chamberTemperatureSensor{

    return _chamberTemperatureSensorStr;
}

- (NSString*)chamberSetPoint{

    return _chamberSetPointStr;
}

+ (DevicesCurrentTemperature_PGS*)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andDeviceType:(NSString*)deviceType{
    
    DevicesCurrentTemperature_PGS *devicesPGS = [DevicesCurrentTemperature_PGS
                                                 devicesWithFreezerID:freezerID
                                                 andUID:uid
                                                 andDeviceName:deviceName
                                                 andCompanyId:companyID
                                                 andMeasureStatus:measureStatus
                                                 andMeasureName:measureName
                                                 andMeasureDescription:measureDescription
                                                 andMeasureSeverity:measureSeverity
                                                 andHealthStatusCode:healthStatusCode
                                                 andHealthStatusText:healthStatustext
                                                 andHealthStatusColor:healthStatusColor
                                                 andConnectionState:connectionState andDeviceType:deviceType];
    
    devicesPGS.chamberTemperatureSensorStr = chamberTemperatureSensor;
    devicesPGS.chamberSetPointStr = chamberSetPoint;
    //devicesPGS.deviceTypeStr = deviceType;
    

    return devicesPGS;
}


- (NSString*)occuranceTime{

    return _occuranceTimeStr;
}

- (NSString*)highTemperatureLimit{

    return _highTemperatureLimitStr;
}

- (NSString*)lowTemperatureLimit{

    return _lowTemperatureLimitStr;
}

- (NSString*)ntcAmbientSensor{

    return _ntcAmbientSensorStr;
}
- (NSString*)ntcCondenserSensor{

    return _ntcCondenserSensorStr;
}

- (NSString*)ntcHeatExchanger1{

    return _ntcHeatExchanger1Str;
}

- (NSString*)ntcHeatExchanger2{

    return _ntcHeatExchanger2Str;
}
- (NSString*)acVoltage{
    
    return _acVoltageStr;
}

- (NSString*)deviceType{

    return self.deviceTypeStr;
}


+ (DevicesCurrentTemperature_PGS*)devicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andhighTemperatureLimit:(NSString*)highTemperatureLimit andlowTemperatureLimit:(NSString*)lowTemperatureLimit andNtcAmbientSensor:(NSString*)ntcAmbientSensor andntcCondenserSensor:(NSString*)ntcCondenserSensor andNtcHeatExchanger1:(NSString*)ntcHeatExchanger1 andNtcHeatExchanger2:(NSString*)ntcHeatExhanger2 andAcVoltage:(NSString*)acVoltage{


    DevicesCurrentTemperature_PGS *deviceGS = [DevicesCurrentTemperature_PGS devicesWithFreezerID:freezerID andDeviceType:deviceType];
    
   // deviceGS.deviceTypeStr = deviceType;
    deviceGS.chamberTemperatureSensorStr = chamberTemperatureSensor;
    deviceGS.chamberSetPointStr = chamberSetPoint;
    deviceGS.occuranceTimeStr = occuranceTime;
    deviceGS.highTemperatureLimitStr = highTemperatureLimit;
    deviceGS.lowTemperatureLimitStr = lowTemperatureLimit;
    deviceGS.ntcAmbientSensorStr = ntcAmbientSensor;
    deviceGS.ntcCondenserSensorStr = ntcCondenserSensor;
    deviceGS.ntcHeatExchanger1Str = ntcHeatExchanger1;
    deviceGS.ntcHeatExchanger2Str = ntcHeatExhanger2;
    deviceGS.acVoltageStr = acVoltage;
    
    return deviceGS;
}


- (NSString*)occuranceTimeAlarm{

    return _occuranceTimeAlarmStr;
}
- (NSString*)alarmCodeAlarm{

    return _alarmCodeAlarmStr;
}

- (NSString*)alarmTextAlarm{
    
    return _alarmTextAlarmStr;
}

- (NSString*)measureStatusAlarm{
    
    return _measureStatusAlarmStr;
}

- (NSString*)measureNameAlarm{
    
    return _measureNameAlarmStr;
}

- (NSString*)measureDescriptionAlarm{

    return _measureDescriptionAlarmStr;
}

- (NSString*)measureSeverityAlarm{

    return _measureSeverityAlarmStr;
}

- (NSString*)cronStatusAlarm{

    return _cronStatusAlarmStr;
}

+ (DevicesCurrentTemperature_PGS*)alarmDevicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperaturesSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andAlarmCode:(NSString*)alarmCode andAlarmText:(NSString*)alarmText andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andCronStatus:(NSString*)cronStatus{

    DevicesCurrentTemperature_PGS *devicePGS = [DevicesCurrentTemperature_PGS
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];

    
    devicePGS.occuranceTimeAlarmStr = occuranceTime;
    devicePGS.alarmCodeAlarmStr = alarmCode;
    devicePGS.alarmTextAlarmStr = alarmText;
    devicePGS.measureStatusAlarmStr = measureStatus;
    devicePGS.measureNameAlarmStr = measureName;
    devicePGS.measureDescriptionAlarmStr = measureDescription;
    devicePGS.measureSeverityAlarmStr = measureSeverity;
    devicePGS.cronStatusAlarmStr = cronStatus;
    
    return devicePGS;
}


- (NSString*)occuranceTimeEvent{
    
    return _occuranceTimeEventStr;
}

- (NSString*)eventCode{

    return _eventCodeStr;
}

+ (DevicesCurrentTemperature_PGS*)eventDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andEventCode:(NSString*)eventCode{
    
    DevicesCurrentTemperature_PGS *devicePGS = [DevicesCurrentTemperature_PGS
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    devicePGS.occuranceTimeEventStr = occuranceTime;
    devicePGS.eventCodeStr = eventCode;
    
    return devicePGS;
    
}

@end
